package com.czn.shopdemo.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Zenan Chen
 * @date 2023/4/4 9:31
 */
@Data
@TableName(value = "t_shop_demo_user")
@EqualsAndHashCode(callSuper = false)
public class User extends BaseEntity {

    @ApiModelProperty(value = "账号", example = "admin")
    @TableField("account")
    private String account;

    @ApiModelProperty(value = "密码", example = "admin")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "姓名", example = "张三")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "手机号", example = "13023312425")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "性别", example = "1")
    @TableField("sex")
    private String sex;

    @ApiModelProperty(value = "年龄", example = "23")
    @TableField("age")
    private Integer age;

}
